package com.example.gulimall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.common.utils.PageUtils;
import com.example.gulimall.order.entity.OrderEntity;
import com.example.gulimall.order.vo.OrderConfirmVo;
import com.example.gulimall.order.vo.OrderSubmitVo;
import com.example.gulimall.order.vo.SubmitResponseVo;

import java.util.Map;

/**
 * 订单
 *
 * @author lizhichao
 * @email sunlightcs@gmail.com
 * @date 2021-08-21 16:38:32
 */
public interface OrderService extends IService<OrderEntity> {

    SubmitResponseVo submitOrder(OrderSubmitVo orderSubmitVo);
    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo confirmOrder();

    OrderEntity getOrderByOrderSn(String orderSn);

    void closeOrder(OrderEntity orderEntity);
}

